package com.ht.persist.example.dao;

import com.ht.guice.querydsl.dao.AbstractJPADao;
import com.ht.persist.example.entity.QTodo;
import com.ht.persist.example.entity.Todo;
import com.mysema.query.types.EntityPath;
import com.mysema.query.types.expr.SimpleExpression;

/**
 * Created by bcw on 2014/4/11.
 */
public class TodoDao extends AbstractJPADao<Todo, Long> {
    @Override
    protected EntityPath<Todo> getEntityPath() {
        return QTodo.todo;
    }

    @Override
    protected SimpleExpression<Long> getPrimaryKeyExpression() {
        return QTodo.todo.id;
    }
}
